import service from "../serviceIndex";

/**
 * 申请实体店的接口
 */

// 申请实体店
export const applyShop = (params) => {
  return service({
    method: "post",
    url: `/pipayshopapi/store-info/applyShop`,
    params,
  });
};

// pi_Id_Image上传
export const piIdImageUp = (data) => {
  return service({
    method: "post",
    url: `/pipayshopapi/store-info/piIdImageUp`,
    headers: { "Content-Type": "multipart/form-data" },
    data,
  });
};

// 实体店轮播图上传
export const shopImageUp = (data) => {
  return service({
    method: "post",
    url: `/pipayshopapi/store-commodity-info/shopCommodityImageUp`,
    headers: { "Content-Type": "multipart/form-data" },
    data,
  });
};

// 实体店图片上传
export const physicalStoreImageUp = (data) => {
  return service({
    method: "post",
    url: `/pipayshopapi/store-commodity-info/shopCommodityTopImageUp`,
    headers: { "Content-Type": "multipart/form-data" },
    data,
  });
};

// 实体店展示图查看
export const shopImageGet = (imgId) => {
  return service({
    method: "Get",
    url: `/pipayshopapi/store-commodity-info/GetImage/${imgId}`,
    headers: { "Content-Type": "multipart/form-data" },
  });
};
